// 动火证
import httpAPI from '../../utils/http.js'

export default {
  /**
   * 申请动火证
   */
  addHotCard(params) {
    return httpAPI.post('system/fire/applyFire', params)
  },
  /**
   * 动火证列表
   */
  getHotCardList() {
    return httpAPI.get('system/fire/applyFireList')
  },
  /**
   * 动火证审批列表
   */
  getHotCardDataList(status) {
    return httpAPI.get(`system/fire/firePermitCheckList/${status}`)
  },
  /**
   *动火证详情
   * id 动火证id
   */
  getHotCardDetails(id) {
    return httpAPI.get('system/fire/firePermitDetail', {
      id
    })
  },
  /**
   * @param {Object} params 审批参数
   * 企业员工审批
   */
  approvalHotCard(params) {
    return httpAPI.post('system/fire/firePermitCheck', params)
  }
}
